<? ini_set('memory_limit','10000M');?>
<style>
body { margin-top:15; font-size:10px;}
		.b_line { border-bottom:1px #AAAAAA solid; height:25px; font-size:14px}
		.border_t{border-top:1px inset #EEE;}
		.border_b{border-bottom:1px inset #EEE;}
		.border_l{border-left:1px inset #EEE;}
		.border_r{border-right:1px inset #EEE;}
		.xx:hover {cursor:pointer; background:#99FF99;}
		.xy:hover {cursor:pointer; background:#F30;}
		.box{border:0.5px solid #003}
		.box_t{border-top:1px solid #003;}
		.box_lbr{border:1px solid #003; border-top:none}
		.box_ltr{border:1px solid #003; border-bottom:none}
		.box_l{border-left:1px solid #003;}
		.box_r{border-right:1px solid #003;}
		.box_lb{border-left:1px solid #003;border-bottom:1px solid #003;}
		.box_rb{border-right:1px solid #003;border-bottom:1px solid #003;}
		.list_genap{cursor:pointer; background-color:#6699FF;}
		.list_ganjil{cursor:pointer; background-color:#9966FF;}
		.list_closed{cursor:pointer; background-color:#FF99FF;}
</style>
<body>
<table width='100%' style="border-collapse:collapse">
<tr><td colspan='8' align='center'><b>REKAP SALDO SIMPANAN /PINJAMAN ANGGOTA </b></td></tr>
<tr><td colspan='8' align='center'>Lokasi :<?=$id_lokasi?></td></tr>
</table>
<table width='100%' style="border-collapse:collapse">
<thead>
<tr><th width='4%'></th><th colspan='7' align='left'><b>Per Tanggal :<?=date('d F Y');?></b></th></tr>
<tr style="background:#999999">
	<th width='4%' class='box' rowspan='2'>No.</th>
	<th width='8%' class='box' rowspan='2'>No.Anggota</th>
	<th width='13%' class='box' rowspan='2'>Nama Anggota.</th>
	<th width='75%' class='box' colspan='6'>Jenis Saldo</th>
</tr>
<tr style='background:#999999'>
<?php $html='';
		foreach($simp as $r)
		{
			$html.=td($r->nm_simpanan,'8%',true,'box','center');
		}
		echo $html;
?>
</tr><thead><tbody>
<?	
	$content='';$i=0;$t_1=0;$t_2=0;$t_3=0;$t_4=0;$t_5=0;$t_6=0;
		foreach($lst_usr as $r)
		{
			$i++;
			$content.=tr().td($i,'',false,'box','center').
					  td($r->id_reg,'',false,'box','center').
					  td($r->nm_member,'',false,'box','\' nowrap=\'nowrap').
					  td(number_format((int)$r->simpanan_pokok,2),'',false,'box','right').
					  td(number_format((int)$r->saldo_wajib,2),'',false,'box','right').
					  td(number_format((int)$r->saldo_sukarela,2),'',false,'box','right').
					  td(number_format((int)$r->saldo_pinjaman_barang,2),'',false,'box','right').
					  td(number_format((int)$r->saldo_pinjaman_uang,2),'',false,'box','right').
					  td(number_format((int)$r->saldo_pinj_nonkredit,2),'',false,'box','right').
					 _tr();
		$t_1 +=$r->simpanan_pokok;
		$t_2 +=$r->saldo_wajib;
		$t_3 +=$r->saldo_sukarela;
		$t_4 +=$r->saldo_pinjaman_barang;
		$t_5 +=$r->saldo_pinjaman_uang;
		$t_6 +=$r->saldo_pinj_nonkredit;
		}
		$content.=$this->zetro_form->DataNotFound($lst_usr,8);
		$content.=($lst_usr)?
			tr('list_closed').td('','',false,'box').td('','',false,'box').td('Total','',false,'box','right').
				td(number_format((int)$t_1,2),'',false,'box','right').
				td(number_format((int)$t_2,2),'',false,'box','right').
				td(number_format((int)$t_3,2),'',false,'box','right').
				td(number_format((int)$t_4,2),'',false,'box','right').
				td(number_format((int)$t_5,2),'',false,'box','right').
				td(number_format((int)$t_6,2),'',false,'box','right').
			_tr():'';
	echo $content;
?>
</tbody>
<tfoot>
<tr><td colspan='8'><font style="font-size:xx-small; font-style:italic">Pages 1 of ?</font></td></tr></tfoot>
</table>

	